From: Florian Müllner Date: Sun, 20 Aug 2017 15:53:41 +0000 (+0200) Subject: workspace: Focus clone when highlighting X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~18 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1939e22c22c142b38216d9e36dcdf79e96003532;p=gnome-shell.git workspace: Focus clone when highlighting We don't use different hover- and focus indications for window previews, so using keyboard navigation after hovering a clone often has surprising results when the previous focus window wasn't the selected one. Address this by simply moving the keyboard focus with the highlight. https://bugzilla.gnome.org/show_bug.cgi?id=786546 --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index a37764913..a64cf7dec 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -662,6 +662,7 @@ var WindowOverlay = new Lang.Class({ if (this._hidden) return; + this._windowClone.actor.grab_key_focus(); this._animateVisible(); this.emit('show-close-button'); },